﻿
using System;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EnterpriseServices.Service
{
    /// <summary>
    /// 
    /// </summary>
    public partial class ApplicationProxy
    {
        #region IApplicationManager Members

        /// <summary>
        /// Deletes the application.
        /// </summary>
        /// <param name="application">The application.</param>
        public void DeleteApplication(string application)
        {
            IApplicationManager proxy = new ChannelFactory<IApplicationManager>().CreateChannel();
            proxy.DeleteApplication(application);
        }

        /// <summary>
        /// Deletes all applications.
        /// </summary>
        public void DeleteAllApplications()
        {
            IApplicationManager proxy = new ChannelFactory<IApplicationManager>().CreateChannel();
            proxy.DeleteAllApplications();
        }

        /// <summary>
        /// Gets the applications.
        /// </summary>
        /// <returns></returns>
        public string[] GetApplications()
        {
            IApplicationManager proxy = new ChannelFactory<IApplicationManager>().CreateChannel();
            return proxy.GetApplications();
        }

        #endregion
    }
}
